package com.yhd.task.util;

import lombok.Getter;

/**
 * 返回状态码
 *
 * @author yinhuidong3@xiaomi.com
 * @since 2021/7/4
 */
@Getter
public enum ResultCode {
    SUCCESS(200,"成功"),
    FAIL(201, "失败");

    private Integer code;

    private String message;

    private ResultCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

}
